package com.smssalama;

import java.io.IOException;

import javax.microedition.lcdui.Image;

/**
 * Store paths to application images
 * 
 * @author Arnold P. Minde
 */
public class ImageResources {
	public static final String IMG_APP = "/images/app_icon16.png";
	public static final String IMG_HELP = "/images/help.png";
	public static final String IMG_MAIL_IN_OLD = "/images/mail_in.png";
	public static final String IMG_MAIL_IN_NEW = "/images/mail_in_new.png";
	public static final String IMG_MAIL_OUT = "/images/mail_out.png";
	public static final String IMG_MAIL_IN_FAILED = "/images/mail_failed_in_16.png";

	public static final String IMG_MAIL_FOLDER = "/images/messages_folder_12.png";
	public static final String IMG_MAIL_IN_FAILED_FOLDER = "/images/messages_folder_in_failed_16.png";

	public static final String IMG_MESSAGES = "/images/messages_16.png";
	public static final String IMG_CONTACTS = "/images/contacts12.png";
	public static final String IMG_SETTINGS = "/images/contacts12.png";
	public static final String IMG_NEW_MESSAGE = "/images/mail_new16.png";

	public static Image getImage(String name) {
		try {
			return Image.createImage(name);
		} catch (IOException ex) {
			return null;
		}
	}
}
